<?php
/**
 * Created by PhpStorm.
 * User: xh
 * Date: 2020/4/21
 * Time: 5:29 PM
 */

namespace weChat;


class Live extends Pit
{
    /**
     * @param $GlobalAccessToken
     * @param int $start
     * @param int $limit
     * @return bool|mixed
     */
    public static function list($GlobalAccessToken,$start=0,$limit=10){
        $query = array(
            'start'      => $start,
            'limit'      => $limit,
        );
        $url = 'http://api.weixin.qq.com/wxa/business/getliveinfo?access_token='.$GlobalAccessToken;
        return self::Curl($url,JsonEn($query));
    }
}